﻿/*
 * Created by SharpDevelop.
 * User: Andrew
 * Date: 10/05/2013
 * Time: 23:07
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Drawing;
using RRRSRoguelikeData;

namespace RRRSRoguelike.Entities.Props
{
	/// <summary>
	/// Allows specific events, etc for floor tiles.
	/// </summary>
	public class Floor:Prop
	{
		//HACK: is the floor a prop???
		
		/// <summary>
		/// Called on entering a floor tile.
		/// </summary>
		public event EventHandler Enter = delegate{};
		/// <summary>
		/// Called on exiting a tile.
		/// </summary>
		public event EventHandler Exit = delegate{};
		
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="position"></param>
		/// <param name="tileData"></param>
		public Floor(Point position,TileData tileData): base(position, tileData)
		{
		}
		
		/// <summary>
		/// event
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		public void OnEnter(object sender, EventArgs e)
		{
			Enter(sender, e);
		}
		
		/// <summary>
		/// event
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>	
		public void OnExit(object sender, EventArgs e)
		{
			Exit(sender, e);
		}
	}
}
